//
//  Book.m
//  03-NSArrayAndNSMutableArray
//
//  Created by 曹曹 on 16/7/6.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import "Book.h"

@implementation Book
#pragma mark - 初始化
- (instancetype)initWithBookName:(NSString *)name price:(NSString *)price {
    self = [super init];
    if (self) {
        _bookName = name;
        _bookPrice = price;
    }
    return self;
}
#pragma mark - 构造器
+ (instancetype)bookWithName:(NSString *)name price:(NSString *)price {
    return [[Book alloc] initWithBookName:name price:price];
}
@end
